package com.hongpu.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.hongpu.domain.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hongpu.dto.SysMenuDto;
import com.hongpu.utils.ResultDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Michael zhang
* @description 针对表【sys_permission(菜单权限表)】的数据库操作Mapper
* @createDate 2025-06-05 09:11:31
* @Entity generator.domain.SysPermission
*/
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 新增
     * @param sysMenu
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    public boolean add(SysMenu sysMenu);

    /**
     * 修改
     */
    @InterceptorIgnore(tenantLine = "true")
    public boolean update(SysMenu sysMenu);
    /**
     * 删除菜单
     * @param menuId
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    public boolean delete(@Param("menuId") Long menuId,@Param("updateBy") Long updateBy);

    /**
     * 启用菜单
     * @param menuId
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    public boolean active(@Param("menuId") Long menuId,@Param("updateBy") Long updateBy);

    /**
     * 获取菜单集合
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    public List<SysMenu> menuList();
    /**
     * 获取菜单集合
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    public List<SysMenu> getList(SysMenuDto sysMenuDto);
}




